package com.dcy.daily.skill.springboot.readYml;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author duanchunyu
 * @version 1.0.0
 * @Description 用户信息配置类
 * @createTime 2021年05月28日 10:37:00
 */
@Configuration
public class UserInfoConfig {


    @Bean
    @ConfigurationProperties(prefix = "userinfo")
    public UserInfo getUserInfo(){
        return new UserInfo();
    }
}
